﻿<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="Header.ascx.vb" Inherits="SanDauGia.DAL.Header" %>
			
<style type="text/css">
    .style1
    {
        width: 193px;
    }
    .style2
    {
        color: #000000;
    }
</style>
			
<table border="0" cellpadding="0" cellspacing="0">
					<tbody>
				<tr>
				<td>
			    <table border="0" cellpadding="0" cellspacing="0">
				    <tbody>
				    <tr>
					    <td class="logo" style="height: 43px">
					            <a href="http:default.aspx">
					            <asp:Image runat ="server" ID ="logo" ImageUrl="~/images/logo.JPG" />
					            </a>
					        </td>
					    <td 
				             </table>
									
						</td>
								
						<td class="login" align="right" style="width: 82px; height: 43px;">
						<table align="right" border="0" cellpadding="0" cellspacing="0" style="width: 313%">
     										
							<tbody>
                                <% If (Convert.ToInt16(Session("IsLogin")) <> 1) Then
                                   %>
                            <tr>
							    <td class="style1">
							        &nbsp;
                                </td>
                               
							    <td style="background: transparent url(images/login_bg.gif) repeat-x scroll 0px 0px; width: 100%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">
							    <a href="http:Login.aspx">Login</a>
							    </td>
                                
							    <td>
							        <asp:Image runat ="server" ID ="Image2" ImageUrl="~/images/login_right.gif" width="2" height="22" />
                                    <%--<img src="images/login_right.gif" alt="" width="2" border="0" height="22">--%>
							    </td>                             


							    </tr>
                                <%
                                   

                                   else
                                    %>
                                   <tr>
                                    <td class="style1" rowspan="3">
							            Chào 
                                        <%= Request.Cookies("DangNhap").Value %>
                                        , <%If (Convert.ToInt16(Session("ChucVu")) <> 1) Then
                                             %><a href="TaiKhoanCuaToi.aspx"><span class="style2">Tài khoản của tôi</span></a><%
                                            else
                                             %><a href="../ad/defaultadmin.aspx"><span class="style2">Trang Admin</span></a><%
                                                                                                                            End If%>
                                        , 
                                    
                                        <asp:LinkButton ID="btnLogout" runat="server" onclick="btnLogout_Click" 
                                            ForeColor="Black">Đăng Xuất</asp:LinkButton>
                                    
                                    </td>
                                   </tr>
                                <% End If%>
						    </tbody>
						</table>
					    </td>
						</tr>
						</tbody></table>
				</td>
				</tr>
				<tr>
				<!--Doan nay dang sua 1-->
			        <td>
						<table border="0" cellpadding="0" cellspacing="0">
							<tbody>
							<tr>
								<td style="height: 101px; width: 8px;"><asp:Image runat ="server" ID ="Imag" ImageUrl="~/images/navigation_left.gif" width="7"  height="94" /><%--<img src="images/navigation_left.gif" alt="" width="7" border="0" height="94">--%></td>
								<td style="padding: 0px 2px; background: transparent url(images/navigation_bg.gif) 
								repeat-x scroll 0px 0px; width: 100%; 
								-moz-background-clip: border;
								-moz-background-origin: padding;
								-moz-background-inline-policy: continuous; height: 101px;">
				        <table style="margin-bottom: 13px;" border="0" cellpadding="0" cellspacing="0">
					<tbody>
					
				<tr>
					<td class="menu" style="height: 62px">
						<table style="background: transparent url(images/menu_bg.gif) repeat-x scroll left top; overflow: hidden; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;" border="0" cellpadding="0" cellspacing="0">
							<tbody>
							<tr>
					        <td class="menu_separator">
					            <asp:Image runat ="server" ID ="home" ImageUrl="~/images/menu_left.gif" 
					            width="3"  height="24" />
					        </td>
					        <td id="over_m1" onmouseout="this.id='over_m1';" 
					            onmouseover="this.id='over_m1';" onclick="document.location='http:Home.aspx'"
					         nowrap="nowrap"> Trang chủ</td>
					         
					        <td class="menu_separator">
					            <asp:Image runat ="server" ID ="Image3" 
					            ImageUrl="~/images/menu_separator.gif" width="5"  height="24" />
					        </td>
        					
					        <td id="m3" onmouseout="this.id='m3';" 
					            onmouseover="this.id='over_m3';" onclick="document.location='http:ProductList.aspx'">Sàn Đấu Giá</td>
					        <td class="menu_separator">
					        <asp:Image runat ="server" ID ="Image5" ImageUrl="~/images/menu_separator.gif" width="5"  height="24" /><%--<img src="images/menu_separator.gif" alt="" width="5" border="0" height="24">--%></td>
        						
                                
					        <td id="m4" onmouseout="this.id='m4';" onmouseover="this.id='over_m4';" 
					        onclick="document.location='http:Dangky.aspx'" nowrap="nowrap">Đăng ký</td>
					        <td class="menu_separator">
                             <asp:Image runat ="server" ID ="Image4" ImageUrl="~/images/menu_separator.gif" width="5"  height="24" /><%--<img src="images/menu_separator.gif" alt="" width="5" border="0" height="24">--%></td>
        						
                                
					        <td id="m5" onmouseout="this.id='m5';" onmouseover="this.id='over_m4';" 
					        onclick="document.location='http:ProductList.aspx'" nowrap="nowrap">Mua</td>
					        <td class="menu_separator">
					        <asp:Image runat ="server" ID ="Image6" ImageUrl="~/images/menu_separator.gif" width="5"  height="24" /><%--<img src="images/menu_separator.gif" alt="" width="5" border="0" height="24">--%></td>
					        </td>
					        <td id="m6" onmouseout="this.id='m6';" onmouseover="this.id='over_m6';" onclick="document.location='http:Sell.aspx'">Bán</td>
					        <td class="menu_separator" style="background: rgb(194, 2, 2) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; width: 5px;"><asp:Image runat ="server" ID ="Image7" ImageUrl="~/images/menu_right.gif" width="4"  height="24" /><%--<img src="images/menu_right.gif" alt="" width="4" border="0" height="24">--%></td>
					        </tr>
				            </tbody>
				    </table>
					</td>
					<td class="search" style="height: 62px">					   				
					        <table style="width: 253px;"  border="0" cellpadding="0" cellspacing="0">
							        <tbody>
							        <tr>
								        <td style="vertical-align: top; height: 15px;">
								        <asp:Image runat ="server" ID ="Image8" ImageUrl="~/images/search_bg2.gif" width="3"  height="22" /></td>
								        <td style="background: transparent url(images/search_bg22.gif) repeat-x scroll 0px 0px; width: 100%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; height: 15px;" valign="bottom">
        									
        										    
										                <%--<input name="keywords" runat="server" class="go" type="text" style="width: 201px;" tabindex="1"/>--%>
                                                        <asp:TextBox ID="txtKeywords" runat="server" class="go" type="text" tabindex="1" Height="24px" Width="201px"></asp:TextBox>
        										
								        </td>
        								
								         <td valign="bottom" style="height: 15px" >
                                             <%--    <asp:Image runat ="server" ID ="Image12" 
								             ImageUrl="~/images/search_bg333.gif" width="4"  height="24" />--%>
                                            <%-- <asp:ImageButton ID="ImageButton2" runat="server" 
                                             OnClick="ImageButton2_Click1" 
                                                 tabindex="0" CausesValidation="False"/>--%></td>
							        </tr>
						        </tbody>
						        </table>
				       
					</td>
				</tr>
				</tbody>
				</table>
                                    </td>
				        <td style="height: 101px; width: 8px;">
				        <asp:Image runat ="server" ID ="Image11" ImageUrl="~/images/navigation_right.gif" width="7"  height="94" />
				        <%--<img src="images/navigation_right.gif" alt="" width="7" border="0" height="94">--%></td>
					</tr>
					</tbody>
				</table>
                    </td>
                <!--EOF :Doan nay dang sua 1-->    
                    </tr>
				</tbody>
				</table>